package com.sz.mes.entity.warehouse;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 出库操作记录 Entity定义
 * @author hem
 * @version 1.0
 * @date 2023-05-25
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("warehouse_outbound_record")
public class OutboundRecord extends BaseCustomEntity {

    private static final long serialVersionUID = 746964338965782921L;

    /**
     * 出库
     */
    @TableField()
    private Long outboundId;

    /**
     * 签收人id
     */
    @TableField()
    private Long reciveUserId;

    /**
     * 商品
     */
    @TableField()
    private Long goodsId;

    /**
     * 商品编码
     */
    @Length(max = 100, message = "商品编码长度应小于100")
    @TableField()
    private String goodsCode;

    /**
     * 任务单/销售单
     */
    @Length(max = 100, message = "任务单/销售单长度应小于100")
    @TableField()
    private String taskNum;

    /**
     * 货架格子
     */
    @TableField()
    private Long warehouseLatticeId;

    /**
     * 变动数量
     */
    @TableField()
    private Integer quantity;

    /**
     * 操作类型
     */
    @Length(max = 100, message = "操作类型长度应小于100")
    @TableField()
    private String type;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建人
     */
    @Length(max = 100, message = "创建人长度应小于100")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 更新人
     */
    @Length(max = 100, message = "更新人长度应小于100")
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;
}
